Skip to content

Conversation

@MagerOK
Copy link

@MagerOK MagerOK commented May 31, 2023

No description provided.

Copy link
Contributor

@Melevir Melevir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

С аннотациями всё хорошо, кайф.

С оформлением пулреквеста беда. Во-первых, это пр не в тот репо, а во-вторых в нём первые два уровня, хотя название говорит, что должен быть только второй.

def is_point_in_square(point: tuple[int, int],
left_upper_corner: tuple[int, int],
right_bottom_corner: tuple[int, int],
) -> bool:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

С тайпхинтами дефы часто не умещаются в одну строку. Я обычно так форматирую:

def is_point_in_square(
    point: tuple[int, int],
    left_upper_corner: tuple[int, int],
    right_bottom_corner: tuple[int, int],
) -> bool:
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants